package com.advertisementsystem.Dto;

import jakarta.validation.constraints.*;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class NegotiationDTO {
    @NotNull(message = "广告ID不能为空")
    private Long adId;

    @NotNull(message = "价格不能为空")
    @DecimalMin(value = "0.01", message = "价格必须大于0")
    private BigDecimal price;

    // @NotEmpty(message = "播放时段不能为空")
    private List<TimeSlot> timeSlots;

    @NotBlank(message = "协商内容不能为空")
    private String content;
    @NotNull(message = "设备ID不能为空")
    private Long deviceId;
}